from pythonforandroid.recipe import PythonRecipe
import os

class PyamlRecipe(PythonRecipe):
    version = "15.8.2"
    if os.environ.get("OSMILE_LOCALURL", None):
        url = os.environ.get("OSMILE_LOCALURL", None) + '/pyaml/{version}/{version}.tar.gz'
    else:
        url = 'https://pypi.python.org/packages/source/p/pyaml/pyaml-{version}.tar.gz'
    depends = ["setuptools"]
    site_packages_name = 'yaml'
    call_hostpython_via_targetpython = False


recipe = PyamlRecipe()
